<!-- 逻辑 -->
<script setup lang="ts">
import { ref } from 'vue'

const foods = ref(['隆江猪脚饭', '白切鸡', '把子肉', '黄焖鸡'])
</script>

<!-- 结构 -->
<template>
  <div v-for="(item, index) in foods" :key="index">
    <span>{{ index + 1 }}--{{ item }}</span>
  </div>
</template>
<!-- 样式 -->
<style scoped></style>
